package com.zdlee.netty.server19.protocol.request;


import com.zdlee.netty.server19.protocol.Packet;
import lombok.Data;
import lombok.NoArgsConstructor;

import static com.zdlee.netty.server19.protocol.command.Command.GROUP_MESSAGE_REQUEST;

/**
 * @author zdlee
 * @description: ${DESCRIPTION}
 * @create 2018-12-03 16:36
 */
@Data
@NoArgsConstructor
public class GroupMessageRequestPacket extends Packet {

    private String toGroupId;

    private String message;

    public GroupMessageRequestPacket(String toGroupId,String message){
        this.toGroupId=toGroupId;
        this.message=message;
    }


    @Override
    public Byte getCommand() {
        return GROUP_MESSAGE_REQUEST;
    }


}
